package strategyexample.src.yjf.children;


import strategyexample.src.yjf.behavior.impl.FlyWithWingImpl;
import strategyexample.src.yjf.behavior.impl.GuaGuaImpl;
import strategyexample.src.yjf.supperObj.BaseDuck;


/**
 * @author yaojianfeng
 */
public class MallardDuck extends BaseDuck {
    public MallardDuck() {
        flyBehavior = new FlyWithWingImpl();
        quackBehavior =new GuaGuaImpl();
    }

    @Override
    public void display() {
        System.out.println("绿头鸭");
    }

}
